package Hibernate.cn.edu.scau.cmi.lishuoxin.client;

import Hibernate.cn.edu.scau.cmi.lishuoxin.dao.StudentDAO;
import Hibernate.cn.edu.scau.cmi.lishuoxin.domain.Student;

public class TestClient {

	public static void main(String[] args) {
		addStudent();
	}
	
	public static void addStudent() {
		
		Student student = new Student();
		student.setId((long) 106);
		student.setName("wanwy");
		
		StudentDAO dao = new StudentDAO();
		//dao.delete(student);
		
		System.out.println(dao.findById((long) 1));
		
	}
}
